function newTabPage(url,data){
	debugger;
	$("form[name=menuLink]").find("input").remove();
	if(data!=null)
	for(var item in data){
		var input = $("<input type='hidden' name='"+item+"' value='"+data[item]+"' />");
		$("form[name=menuLink]").append(input);
	}
	$("form[name=menuLink]").attr("action",url);
	$("form[name=menuLink]").submit();
}
function getLocalizeResvStatus(resvStatus){
	if(resvStatus=="Reserved Rooms") return statusResv;
	else if(resvStatus=="Checked-out Rooms") return statusCheckOut;
	else if(resvStatus=="Temp Rooms") return statusTempResv;
	else if(resvStatus=="Cancel Reservation") return statusCancelCheckin;
	else if(resvStatus=="Checked-in Rooms") return statusCheckin;
	else if(resvStatus=="DNR") return "DNR";
	else if(resvStatus==null) return todayroomstatus_empty;
	else return "--";
}
function getLocalizeCleaningStatus(cleaningStatus){
	if(cleaningStatus=="Clean Rooms") return cleaning_cleanRooms;
	else if(cleaningStatus=="Dirty Rooms") return cleaning_dirtyRooms;
	else if(cleaningStatus=="Touch-Up Rooms") return cleaning_touchUpRooms;
	else if(cleaningStatus=="Inspect Rooms") return cleaning_inspectRooms;
	else if(cleaningStatus=="Repair Rooms") return cleaning_repairRooms;
	else return cleaning_dnrRooms;
}
function delayLoad(callback){
	var services = [];
	services.push(["/paytypeService",{func:"GetAllPayModeAndPayType"},function(data,args) { SharedData.PayModeAndPayType = JSON.parse(data); },null]);
	services.push(["/reasonCancelService",{func:"loadReasonCancel"},function(data,args) { SharedData.CancelReason = JSON.parse(data); },null]);
	services.push(["/popupService",{doClass:"loadPackage"},function(data,args) { SharedData.Package = JSON.parse(data); },null]);
	services.push(["/POSTableService",{func : "getAllPOS"},function(data,args) {SharedData.POS = JSON.parse(data); },null]);
	services.push(["/popupService",{doClass:"loadSalutation"},function(data,args) { SharedData.Salutation = JSON.parse(data);},null]);
	services.push(["/taxService",{func:"getRoomTax"},function(data,args) { SharedData.RoomTax = JSON.parse(data);},null]);
	services.push(["/CreditCardService",{func:"loadCreditCardType"},function(data,args) { SharedData.CreditCardType = JSON.parse(data);},null]);
	arrayservice(services,null,null);
}
